CC = g++
CFLAGS = -Wall -Wextra -O2
LDFLAGS = -lpcap

TARGET = protocol_analyzer
SRC = protocol_analyzer.cpp

all: $(TARGET)

$(TARGET): $(SRC)
	$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)

clean:
	rm -f $(TARGET)

install: $(TARGET)
	cp $(TARGET) /usr/local/bin/

uninstall:
	rm -f /usr/local/bin/$(TARGET)
